package cn.koala.key.api;

import cn.koala.key.common.feign.BaseApi;
import cn.koala.key.complaint.entity.dto.CityInfoDTO;
import cn.seed.common.core.Result;
import feign.Param;
import feign.RequestLine;

import java.util.List;

/**
 * @author liutao
 * @date 2021/1/18
 */
public interface CityApi extends BaseApi {

    @RequestLine("GET city/cities")
    Result<List<CityInfoDTO>> listAllCities();

    @RequestLine("GET city/getCityIdByCityName?cityName={cityName}")
    Result<CityInfoDTO> getCityIdByCityName(@Param("cityName") String cityName);
}
